package jspx.example.table;

import com.github.jspxnet.sober.annotation.Column;
import com.github.jspxnet.sober.annotation.Id;
import com.github.jspxnet.sober.annotation.Table;
import com.github.jspxnet.txweb.model.container.AbstractBillObject;
import com.github.jspxnet.utils.StringUtil;
import lombok.Data;
import lombok.EqualsAndHashCode;

//
@EqualsAndHashCode(callSuper = true)
@Data
@Table(name = "demo_test_employee")
public class DynamicBill  extends AbstractBillObject
{
    @Id
    @Column(caption = "id", notNull = true)
    private long id;

    @Column(caption = "姓名", length = 50, notNull = true)
    private String name = StringUtil.empty;

    @Column(caption = "性别", length = 4, option="男;女",notNull = true)
    private String sex = StringUtil.empty;

    @Column(caption = "年龄",notNull = true)
    private int old = 1;


}
